var gh = require('grasshopper');

gh.get('/admin', function() {
    this.disableCache();
    var self = this;
    this.getSessionValue('user', function(err, user) {
        if(!err && user) {
            self.render('admin/index'); 
        } else {
            self.render('acl/login/login');
        }
    });
});